(0) Obligation:

Runtime Complexity TRS:
The TRS R consists of the following rules:

+(x, 0) → x
+(0, x) → x
+(s(x), s(y)) → s(s(+(x, y)))
+(+(x, y), z) → +(x, +(y, z))
*(x, 0) → 0
*(0, x) → 0
*(s(x), s(y)) → s(+(*(x, y), +(x, y)))
*(*(x, y), z) → *(x, *(y, z))
app(nil, l) → l
app(cons(x, l1), l2) → cons(x, app(l1, l2))
sum(nil) → 0
sum(cons(x, l)) → +(x, sum(l))
sum(app(l1, l2)) → +(sum(l1), sum(l2))
prod(nil) → s(0)
prod(cons(x, l)) → *(x, prod(l))
prod(app(l1, l2)) → *(prod(l1), prod(l2))

Rewrite Strategy: FULL

(1) DecreasingLoopProof (EQUIVALENT transformation)

The following loop(s) give(s) rise to the lower bound Ω(n1):
The rewrite sequence
+(s(x), s(y)) →+ s(s(+(x, y)))
gives rise to a decreasing loop by considering the right hand sides subterm at position [0,0].
The pumping substitution is [x / s(x), y / s(y)].
The result substitution is [ ].

(2) BOUNDS(n^1, INF)

(3) RenamingProof (EQUIVALENT transformation)

Renamed function symbols to avoid clashes with predefined symbol.

(4) Obligation:

Runtime Complexity Relative TRS:
The TRS R consists of the following rules:

+'(x, 0') → x
+'(0', x) → x
+'(s(x), s(y)) → s(s(+'(x, y)))
+'(+'(x, y), z) → +'(x, +'(y, z))
*'(x, 0') → 0'
*'(0', x) → 0'
*'(s(x), s(y)) → s(+'(*'(x, y), +'(x, y)))
*'(*'(x, y), z) → *'(x, *'(y, z))
app(nil, l) → l
app(cons(x, l1), l2) → cons(x, app(l1, l2))
sum(nil) → 0'
sum(cons(x, l)) → +'(x, sum(l))
sum(app(l1, l2)) → +'(sum(l1), sum(l2))
prod(nil) → s(0')
prod(cons(x, l)) → *'(x, prod(l))
prod(app(l1, l2)) → *'(prod(l1), prod(l2))

S is empty.
Rewrite Strategy: FULL

(5) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)

Infered types.

(6) Obligation:

TRS:
Rules:
+'(x, 0') → x
+'(0', x) → x
+'(s(x), s(y)) → s(s(+'(x, y)))
+'(+'(x, y), z) → +'(x, +'(y, z))
*'(x, 0') → 0'
*'(0', x) → 0'
*'(s(x), s(y)) → s(+'(*'(x, y), +'(x, y)))
*'(*'(x, y), z) → *'(x, *'(y, z))
app(nil, l) → l
app(cons(x, l1), l2) → cons(x, app(l1, l2))
sum(nil) → 0'
sum(cons(x, l)) → +'(x, sum(l))
sum(app(l1, l2)) → +'(sum(l1), sum(l2))
prod(nil) → s(0')
prod(cons(x, l)) → *'(x, prod(l))
prod(app(l1, l2)) → *'(prod(l1), prod(l2))

Types:
+' :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
*' :: 0':s → 0':s → 0':s
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
sum :: nil:cons → 0':s
prod :: nil:cons → 0':s
hole_0':s1_0 :: 0':s
hole_nil:cons2_0 :: nil:cons
gen_0':s3_0 :: Nat → 0':s
gen_nil:cons4_0 :: Nat → nil:cons

(7) OrderProof (LOWER BOUND(ID) transformation)

Heuristically decided to analyse the following defined symbols:
+', *', app, sum, prod

They will be analysed ascendingly in the following order:
+' < *'
+' < sum
*' < prod

(8) Obligation:

TRS:
Rules:
+'(x, 0') → x
+'(0', x) → x
+'(s(x), s(y)) → s(s(+'(x, y)))
+'(+'(x, y), z) → +'(x, +'(y, z))
*'(x, 0') → 0'
*'(0', x) → 0'
*'(s(x), s(y)) → s(+'(*'(x, y), +'(x, y)))
*'(*'(x, y), z) → *'(x, *'(y, z))
app(nil, l) → l
app(cons(x, l1), l2) → cons(x, app(l1, l2))
sum(nil) → 0'
sum(cons(x, l)) → +'(x, sum(l))
sum(app(l1, l2)) → +'(sum(l1), sum(l2))
prod(nil) → s(0')
prod(cons(x, l)) → *'(x, prod(l))
prod(app(l1, l2)) → *'(prod(l1), prod(l2))

Types:
+' :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
*' :: 0':s → 0':s → 0':s
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
sum :: nil:cons → 0':s
prod :: nil:cons → 0':s
hole_0':s1_0 :: 0':s
hole_nil:cons2_0 :: nil:cons
gen_0':s3_0 :: Nat → 0':s
gen_nil:cons4_0 :: Nat → nil:cons

Generator Equations:
gen_0':s3_0(0) ⇔ 0'
gen_0':s3_0(+(x, 1)) ⇔ s(gen_0':s3_0(x))
gen_nil:cons4_0(0) ⇔ nil
gen_nil:cons4_0(+(x, 1)) ⇔ cons(0', gen_nil:cons4_0(x))

The following defined symbols remain to be analysed:
+', *', app, sum, prod

They will be analysed ascendingly in the following order:
+' < *'
+' < sum
*' < prod

(9) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
+'(gen_0':s3_0(n6_0), gen_0':s3_0(n6_0)) → gen_0':s3_0(*(2, n6_0)), rt ∈ Ω(1 + n60)

Induction Base:
+'(gen_0':s3_0(0), gen_0':s3_0(0)) →RΩ(1)
gen_0':s3_0(0)

Induction Step:
+'(gen_0':s3_0(+(n6_0, 1)), gen_0':s3_0(+(n6_0, 1))) →RΩ(1)
s(s(+'(gen_0':s3_0(n6_0), gen_0':s3_0(n6_0)))) →IH
s(s(gen_0':s3_0(*(2, c7_0))))

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(10) Complex Obligation (BEST)

(11) Obligation:

TRS:
Rules:
+'(x, 0') → x
+'(0', x) → x
+'(s(x), s(y)) → s(s(+'(x, y)))
+'(+'(x, y), z) → +'(x, +'(y, z))
*'(x, 0') → 0'
*'(0', x) → 0'
*'(s(x), s(y)) → s(+'(*'(x, y), +'(x, y)))
*'(*'(x, y), z) → *'(x, *'(y, z))
app(nil, l) → l
app(cons(x, l1), l2) → cons(x, app(l1, l2))
sum(nil) → 0'
sum(cons(x, l)) → +'(x, sum(l))
sum(app(l1, l2)) → +'(sum(l1), sum(l2))
prod(nil) → s(0')
prod(cons(x, l)) → *'(x, prod(l))
prod(app(l1, l2)) → *'(prod(l1), prod(l2))

Types:
+' :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
*' :: 0':s → 0':s → 0':s
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
sum :: nil:cons → 0':s
prod :: nil:cons → 0':s
hole_0':s1_0 :: 0':s
hole_nil:cons2_0 :: nil:cons
gen_0':s3_0 :: Nat → 0':s
gen_nil:cons4_0 :: Nat → nil:cons

Lemmas:
+'(gen_0':s3_0(n6_0), gen_0':s3_0(n6_0)) → gen_0':s3_0(*(2, n6_0)), rt ∈ Ω(1 + n60)

Generator Equations:
gen_0':s3_0(0) ⇔ 0'
gen_0':s3_0(+(x, 1)) ⇔ s(gen_0':s3_0(x))
gen_nil:cons4_0(0) ⇔ nil
gen_nil:cons4_0(+(x, 1)) ⇔ cons(0', gen_nil:cons4_0(x))

The following defined symbols remain to be analysed:
*', app, sum, prod

They will be analysed ascendingly in the following order:
*' < prod

(12) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
*'(gen_0':s3_0(n731_0), gen_0':s3_0(n731_0)) → *5_0, rt ∈ Ω(n7310 + n73102)

Induction Base:
*'(gen_0':s3_0(0), gen_0':s3_0(0))

Induction Step:
*'(gen_0':s3_0(+(n731_0, 1)), gen_0':s3_0(+(n731_0, 1))) →RΩ(1)
s(+'(*'(gen_0':s3_0(n731_0), gen_0':s3_0(n731_0)), +'(gen_0':s3_0(n731_0), gen_0':s3_0(n731_0)))) →IH
s(+'(*5_0, +'(gen_0':s3_0(n731_0), gen_0':s3_0(n731_0)))) →LΩ(1 + n7310)
s(+'(*5_0, gen_0':s3_0(*(2, n731_0))))

We have rt ∈ Ω(n2) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n2).

(13) Complex Obligation (BEST)

(14) Obligation:

TRS:
Rules:
+'(x, 0') → x
+'(0', x) → x
+'(s(x), s(y)) → s(s(+'(x, y)))
+'(+'(x, y), z) → +'(x, +'(y, z))
*'(x, 0') → 0'
*'(0', x) → 0'
*'(s(x), s(y)) → s(+'(*'(x, y), +'(x, y)))
*'(*'(x, y), z) → *'(x, *'(y, z))
app(nil, l) → l
app(cons(x, l1), l2) → cons(x, app(l1, l2))
sum(nil) → 0'
sum(cons(x, l)) → +'(x, sum(l))
sum(app(l1, l2)) → +'(sum(l1), sum(l2))
prod(nil) → s(0')
prod(cons(x, l)) → *'(x, prod(l))
prod(app(l1, l2)) → *'(prod(l1), prod(l2))

Types:
+' :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
*' :: 0':s → 0':s → 0':s
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
sum :: nil:cons → 0':s
prod :: nil:cons → 0':s
hole_0':s1_0 :: 0':s
hole_nil:cons2_0 :: nil:cons
gen_0':s3_0 :: Nat → 0':s
gen_nil:cons4_0 :: Nat → nil:cons

Lemmas:
+'(gen_0':s3_0(n6_0), gen_0':s3_0(n6_0)) → gen_0':s3_0(*(2, n6_0)), rt ∈ Ω(1 + n60)
*'(gen_0':s3_0(n731_0), gen_0':s3_0(n731_0)) → *5_0, rt ∈ Ω(n7310 + n73102)

Generator Equations:
gen_0':s3_0(0) ⇔ 0'
gen_0':s3_0(+(x, 1)) ⇔ s(gen_0':s3_0(x))
gen_nil:cons4_0(0) ⇔ nil
gen_nil:cons4_0(+(x, 1)) ⇔ cons(0', gen_nil:cons4_0(x))

The following defined symbols remain to be analysed:
app, sum, prod

(15) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
app(gen_nil:cons4_0(n13496_0), gen_nil:cons4_0(b)) → gen_nil:cons4_0(+(n13496_0, b)), rt ∈ Ω(1 + n134960)

Induction Base:
app(gen_nil:cons4_0(0), gen_nil:cons4_0(b)) →RΩ(1)
gen_nil:cons4_0(b)

Induction Step:
app(gen_nil:cons4_0(+(n13496_0, 1)), gen_nil:cons4_0(b)) →RΩ(1)
cons(0', app(gen_nil:cons4_0(n13496_0), gen_nil:cons4_0(b))) →IH
cons(0', gen_nil:cons4_0(+(b, c13497_0)))

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(16) Complex Obligation (BEST)

(17) Obligation:

TRS:
Rules:
+'(x, 0') → x
+'(0', x) → x
+'(s(x), s(y)) → s(s(+'(x, y)))
+'(+'(x, y), z) → +'(x, +'(y, z))
*'(x, 0') → 0'
*'(0', x) → 0'
*'(s(x), s(y)) → s(+'(*'(x, y), +'(x, y)))
*'(*'(x, y), z) → *'(x, *'(y, z))
app(nil, l) → l
app(cons(x, l1), l2) → cons(x, app(l1, l2))
sum(nil) → 0'
sum(cons(x, l)) → +'(x, sum(l))
sum(app(l1, l2)) → +'(sum(l1), sum(l2))
prod(nil) → s(0')
prod(cons(x, l)) → *'(x, prod(l))
prod(app(l1, l2)) → *'(prod(l1), prod(l2))

Types:
+' :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
*' :: 0':s → 0':s → 0':s
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
sum :: nil:cons → 0':s
prod :: nil:cons → 0':s
hole_0':s1_0 :: 0':s
hole_nil:cons2_0 :: nil:cons
gen_0':s3_0 :: Nat → 0':s
gen_nil:cons4_0 :: Nat → nil:cons

Lemmas:
+'(gen_0':s3_0(n6_0), gen_0':s3_0(n6_0)) → gen_0':s3_0(*(2, n6_0)), rt ∈ Ω(1 + n60)
*'(gen_0':s3_0(n731_0), gen_0':s3_0(n731_0)) → *5_0, rt ∈ Ω(n7310 + n73102)
app(gen_nil:cons4_0(n13496_0), gen_nil:cons4_0(b)) → gen_nil:cons4_0(+(n13496_0, b)), rt ∈ Ω(1 + n134960)

Generator Equations:
gen_0':s3_0(0) ⇔ 0'
gen_0':s3_0(+(x, 1)) ⇔ s(gen_0':s3_0(x))
gen_nil:cons4_0(0) ⇔ nil
gen_nil:cons4_0(+(x, 1)) ⇔ cons(0', gen_nil:cons4_0(x))

The following defined symbols remain to be analysed:
sum, prod

(18) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
sum(gen_nil:cons4_0(n14508_0)) → gen_0':s3_0(0), rt ∈ Ω(1 + n145080)

Induction Base:
sum(gen_nil:cons4_0(0)) →RΩ(1)
0'

Induction Step:
sum(gen_nil:cons4_0(+(n14508_0, 1))) →RΩ(1)
+'(0', sum(gen_nil:cons4_0(n14508_0))) →IH
+'(0', gen_0':s3_0(0)) →LΩ(1)
gen_0':s3_0(*(2, 0))

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(19) Complex Obligation (BEST)

(20) Obligation:

TRS:
Rules:
+'(x, 0') → x
+'(0', x) → x
+'(s(x), s(y)) → s(s(+'(x, y)))
+'(+'(x, y), z) → +'(x, +'(y, z))
*'(x, 0') → 0'
*'(0', x) → 0'
*'(s(x), s(y)) → s(+'(*'(x, y), +'(x, y)))
*'(*'(x, y), z) → *'(x, *'(y, z))
app(nil, l) → l
app(cons(x, l1), l2) → cons(x, app(l1, l2))
sum(nil) → 0'
sum(cons(x, l)) → +'(x, sum(l))
sum(app(l1, l2)) → +'(sum(l1), sum(l2))
prod(nil) → s(0')
prod(cons(x, l)) → *'(x, prod(l))
prod(app(l1, l2)) → *'(prod(l1), prod(l2))

Types:
+' :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
*' :: 0':s → 0':s → 0':s
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
sum :: nil:cons → 0':s
prod :: nil:cons → 0':s
hole_0':s1_0 :: 0':s
hole_nil:cons2_0 :: nil:cons
gen_0':s3_0 :: Nat → 0':s
gen_nil:cons4_0 :: Nat → nil:cons

Lemmas:
+'(gen_0':s3_0(n6_0), gen_0':s3_0(n6_0)) → gen_0':s3_0(*(2, n6_0)), rt ∈ Ω(1 + n60)
*'(gen_0':s3_0(n731_0), gen_0':s3_0(n731_0)) → *5_0, rt ∈ Ω(n7310 + n73102)
app(gen_nil:cons4_0(n13496_0), gen_nil:cons4_0(b)) → gen_nil:cons4_0(+(n13496_0, b)), rt ∈ Ω(1 + n134960)
sum(gen_nil:cons4_0(n14508_0)) → gen_0':s3_0(0), rt ∈ Ω(1 + n145080)

Generator Equations:
gen_0':s3_0(0) ⇔ 0'
gen_0':s3_0(+(x, 1)) ⇔ s(gen_0':s3_0(x))
gen_nil:cons4_0(0) ⇔ nil
gen_nil:cons4_0(+(x, 1)) ⇔ cons(0', gen_nil:cons4_0(x))

The following defined symbols remain to be analysed:
prod

(21) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
prod(gen_nil:cons4_0(n15102_0)) → *5_0, rt ∈ Ω(n151020)

Induction Base:
prod(gen_nil:cons4_0(0))

Induction Step:
prod(gen_nil:cons4_0(+(n15102_0, 1))) →RΩ(1)
*'(0', prod(gen_nil:cons4_0(n15102_0))) →IH
*'(0', *5_0)

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(22) Complex Obligation (BEST)

(23) Obligation:

TRS:
Rules:
+'(x, 0') → x
+'(0', x) → x
+'(s(x), s(y)) → s(s(+'(x, y)))
+'(+'(x, y), z) → +'(x, +'(y, z))
*'(x, 0') → 0'
*'(0', x) → 0'
*'(s(x), s(y)) → s(+'(*'(x, y), +'(x, y)))
*'(*'(x, y), z) → *'(x, *'(y, z))
app(nil, l) → l
app(cons(x, l1), l2) → cons(x, app(l1, l2))
sum(nil) → 0'
sum(cons(x, l)) → +'(x, sum(l))
sum(app(l1, l2)) → +'(sum(l1), sum(l2))
prod(nil) → s(0')
prod(cons(x, l)) → *'(x, prod(l))
prod(app(l1, l2)) → *'(prod(l1), prod(l2))

Types:
+' :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
*' :: 0':s → 0':s → 0':s
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
sum :: nil:cons → 0':s
prod :: nil:cons → 0':s
hole_0':s1_0 :: 0':s
hole_nil:cons2_0 :: nil:cons
gen_0':s3_0 :: Nat → 0':s
gen_nil:cons4_0 :: Nat → nil:cons

Lemmas:
+'(gen_0':s3_0(n6_0), gen_0':s3_0(n6_0)) → gen_0':s3_0(*(2, n6_0)), rt ∈ Ω(1 + n60)
*'(gen_0':s3_0(n731_0), gen_0':s3_0(n731_0)) → *5_0, rt ∈ Ω(n7310 + n73102)
app(gen_nil:cons4_0(n13496_0), gen_nil:cons4_0(b)) → gen_nil:cons4_0(+(n13496_0, b)), rt ∈ Ω(1 + n134960)
sum(gen_nil:cons4_0(n14508_0)) → gen_0':s3_0(0), rt ∈ Ω(1 + n145080)
prod(gen_nil:cons4_0(n15102_0)) → *5_0, rt ∈ Ω(n151020)

Generator Equations:
gen_0':s3_0(0) ⇔ 0'
gen_0':s3_0(+(x, 1)) ⇔ s(gen_0':s3_0(x))
gen_nil:cons4_0(0) ⇔ nil
gen_nil:cons4_0(+(x, 1)) ⇔ cons(0', gen_nil:cons4_0(x))

No more defined symbols left to analyse.

(24) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n2) was proven with the following lemma:
*'(gen_0':s3_0(n731_0), gen_0':s3_0(n731_0)) → *5_0, rt ∈ Ω(n7310 + n73102)

(25) BOUNDS(n^2, INF)

(26) Obligation:

TRS:
Rules:
+'(x, 0') → x
+'(0', x) → x
+'(s(x), s(y)) → s(s(+'(x, y)))
+'(+'(x, y), z) → +'(x, +'(y, z))
*'(x, 0') → 0'
*'(0', x) → 0'
*'(s(x), s(y)) → s(+'(*'(x, y), +'(x, y)))
*'(*'(x, y), z) → *'(x, *'(y, z))
app(nil, l) → l
app(cons(x, l1), l2) → cons(x, app(l1, l2))
sum(nil) → 0'
sum(cons(x, l)) → +'(x, sum(l))
sum(app(l1, l2)) → +'(sum(l1), sum(l2))
prod(nil) → s(0')
prod(cons(x, l)) → *'(x, prod(l))
prod(app(l1, l2)) → *'(prod(l1), prod(l2))

Types:
+' :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
*' :: 0':s → 0':s → 0':s
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
sum :: nil:cons → 0':s
prod :: nil:cons → 0':s
hole_0':s1_0 :: 0':s
hole_nil:cons2_0 :: nil:cons
gen_0':s3_0 :: Nat → 0':s
gen_nil:cons4_0 :: Nat → nil:cons

Lemmas:
+'(gen_0':s3_0(n6_0), gen_0':s3_0(n6_0)) → gen_0':s3_0(*(2, n6_0)), rt ∈ Ω(1 + n60)
*'(gen_0':s3_0(n731_0), gen_0':s3_0(n731_0)) → *5_0, rt ∈ Ω(n7310 + n73102)
app(gen_nil:cons4_0(n13496_0), gen_nil:cons4_0(b)) → gen_nil:cons4_0(+(n13496_0, b)), rt ∈ Ω(1 + n134960)
sum(gen_nil:cons4_0(n14508_0)) → gen_0':s3_0(0), rt ∈ Ω(1 + n145080)
prod(gen_nil:cons4_0(n15102_0)) → *5_0, rt ∈ Ω(n151020)

Generator Equations:
gen_0':s3_0(0) ⇔ 0'
gen_0':s3_0(+(x, 1)) ⇔ s(gen_0':s3_0(x))
gen_nil:cons4_0(0) ⇔ nil
gen_nil:cons4_0(+(x, 1)) ⇔ cons(0', gen_nil:cons4_0(x))

No more defined symbols left to analyse.

(27) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n2) was proven with the following lemma:
*'(gen_0':s3_0(n731_0), gen_0':s3_0(n731_0)) → *5_0, rt ∈ Ω(n7310 + n73102)

(28) BOUNDS(n^2, INF)

(29) Obligation:

TRS:
Rules:
+'(x, 0') → x
+'(0', x) → x
+'(s(x), s(y)) → s(s(+'(x, y)))
+'(+'(x, y), z) → +'(x, +'(y, z))
*'(x, 0') → 0'
*'(0', x) → 0'
*'(s(x), s(y)) → s(+'(*'(x, y), +'(x, y)))
*'(*'(x, y), z) → *'(x, *'(y, z))
app(nil, l) → l
app(cons(x, l1), l2) → cons(x, app(l1, l2))
sum(nil) → 0'
sum(cons(x, l)) → +'(x, sum(l))
sum(app(l1, l2)) → +'(sum(l1), sum(l2))
prod(nil) → s(0')
prod(cons(x, l)) → *'(x, prod(l))
prod(app(l1, l2)) → *'(prod(l1), prod(l2))

Types:
+' :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
*' :: 0':s → 0':s → 0':s
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
sum :: nil:cons → 0':s
prod :: nil:cons → 0':s
hole_0':s1_0 :: 0':s
hole_nil:cons2_0 :: nil:cons
gen_0':s3_0 :: Nat → 0':s
gen_nil:cons4_0 :: Nat → nil:cons

Lemmas:
+'(gen_0':s3_0(n6_0), gen_0':s3_0(n6_0)) → gen_0':s3_0(*(2, n6_0)), rt ∈ Ω(1 + n60)
*'(gen_0':s3_0(n731_0), gen_0':s3_0(n731_0)) → *5_0, rt ∈ Ω(n7310 + n73102)
app(gen_nil:cons4_0(n13496_0), gen_nil:cons4_0(b)) → gen_nil:cons4_0(+(n13496_0, b)), rt ∈ Ω(1 + n134960)
sum(gen_nil:cons4_0(n14508_0)) → gen_0':s3_0(0), rt ∈ Ω(1 + n145080)

Generator Equations:
gen_0':s3_0(0) ⇔ 0'
gen_0':s3_0(+(x, 1)) ⇔ s(gen_0':s3_0(x))
gen_nil:cons4_0(0) ⇔ nil
gen_nil:cons4_0(+(x, 1)) ⇔ cons(0', gen_nil:cons4_0(x))

No more defined symbols left to analyse.

(30) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n2) was proven with the following lemma:
*'(gen_0':s3_0(n731_0), gen_0':s3_0(n731_0)) → *5_0, rt ∈ Ω(n7310 + n73102)

(31) BOUNDS(n^2, INF)

(32) Obligation:

TRS:
Rules:
+'(x, 0') → x
+'(0', x) → x
+'(s(x), s(y)) → s(s(+'(x, y)))
+'(+'(x, y), z) → +'(x, +'(y, z))
*'(x, 0') → 0'
*'(0', x) → 0'
*'(s(x), s(y)) → s(+'(*'(x, y), +'(x, y)))
*'(*'(x, y), z) → *'(x, *'(y, z))
app(nil, l) → l
app(cons(x, l1), l2) → cons(x, app(l1, l2))
sum(nil) → 0'
sum(cons(x, l)) → +'(x, sum(l))
sum(app(l1, l2)) → +'(sum(l1), sum(l2))
prod(nil) → s(0')
prod(cons(x, l)) → *'(x, prod(l))
prod(app(l1, l2)) → *'(prod(l1), prod(l2))

Types:
+' :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
*' :: 0':s → 0':s → 0':s
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
sum :: nil:cons → 0':s
prod :: nil:cons → 0':s
hole_0':s1_0 :: 0':s
hole_nil:cons2_0 :: nil:cons
gen_0':s3_0 :: Nat → 0':s
gen_nil:cons4_0 :: Nat → nil:cons

Lemmas:
+'(gen_0':s3_0(n6_0), gen_0':s3_0(n6_0)) → gen_0':s3_0(*(2, n6_0)), rt ∈ Ω(1 + n60)
*'(gen_0':s3_0(n731_0), gen_0':s3_0(n731_0)) → *5_0, rt ∈ Ω(n7310 + n73102)
app(gen_nil:cons4_0(n13496_0), gen_nil:cons4_0(b)) → gen_nil:cons4_0(+(n13496_0, b)), rt ∈ Ω(1 + n134960)

Generator Equations:
gen_0':s3_0(0) ⇔ 0'
gen_0':s3_0(+(x, 1)) ⇔ s(gen_0':s3_0(x))
gen_nil:cons4_0(0) ⇔ nil
gen_nil:cons4_0(+(x, 1)) ⇔ cons(0', gen_nil:cons4_0(x))

No more defined symbols left to analyse.

(33) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n2) was proven with the following lemma:
*'(gen_0':s3_0(n731_0), gen_0':s3_0(n731_0)) → *5_0, rt ∈ Ω(n7310 + n73102)

(34) BOUNDS(n^2, INF)

(35) Obligation:

TRS:
Rules:
+'(x, 0') → x
+'(0', x) → x
+'(s(x), s(y)) → s(s(+'(x, y)))
+'(+'(x, y), z) → +'(x, +'(y, z))
*'(x, 0') → 0'
*'(0', x) → 0'
*'(s(x), s(y)) → s(+'(*'(x, y), +'(x, y)))
*'(*'(x, y), z) → *'(x, *'(y, z))
app(nil, l) → l
app(cons(x, l1), l2) → cons(x, app(l1, l2))
sum(nil) → 0'
sum(cons(x, l)) → +'(x, sum(l))
sum(app(l1, l2)) → +'(sum(l1), sum(l2))
prod(nil) → s(0')
prod(cons(x, l)) → *'(x, prod(l))
prod(app(l1, l2)) → *'(prod(l1), prod(l2))

Types:
+' :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
*' :: 0':s → 0':s → 0':s
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
sum :: nil:cons → 0':s
prod :: nil:cons → 0':s
hole_0':s1_0 :: 0':s
hole_nil:cons2_0 :: nil:cons
gen_0':s3_0 :: Nat → 0':s
gen_nil:cons4_0 :: Nat → nil:cons

Lemmas:
+'(gen_0':s3_0(n6_0), gen_0':s3_0(n6_0)) → gen_0':s3_0(*(2, n6_0)), rt ∈ Ω(1 + n60)
*'(gen_0':s3_0(n731_0), gen_0':s3_0(n731_0)) → *5_0, rt ∈ Ω(n7310 + n73102)

Generator Equations:
gen_0':s3_0(0) ⇔ 0'
gen_0':s3_0(+(x, 1)) ⇔ s(gen_0':s3_0(x))
gen_nil:cons4_0(0) ⇔ nil
gen_nil:cons4_0(+(x, 1)) ⇔ cons(0', gen_nil:cons4_0(x))

No more defined symbols left to analyse.

(36) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n2) was proven with the following lemma:
*'(gen_0':s3_0(n731_0), gen_0':s3_0(n731_0)) → *5_0, rt ∈ Ω(n7310 + n73102)

(37) BOUNDS(n^2, INF)

(38) Obligation:

TRS:
Rules:
+'(x, 0') → x
+'(0', x) → x
+'(s(x), s(y)) → s(s(+'(x, y)))
+'(+'(x, y), z) → +'(x, +'(y, z))
*'(x, 0') → 0'
*'(0', x) → 0'
*'(s(x), s(y)) → s(+'(*'(x, y), +'(x, y)))
*'(*'(x, y), z) → *'(x, *'(y, z))
app(nil, l) → l
app(cons(x, l1), l2) → cons(x, app(l1, l2))
sum(nil) → 0'
sum(cons(x, l)) → +'(x, sum(l))
sum(app(l1, l2)) → +'(sum(l1), sum(l2))
prod(nil) → s(0')
prod(cons(x, l)) → *'(x, prod(l))
prod(app(l1, l2)) → *'(prod(l1), prod(l2))

Types:
+' :: 0':s → 0':s → 0':s
0' :: 0':s
s :: 0':s → 0':s
*' :: 0':s → 0':s → 0':s
app :: nil:cons → nil:cons → nil:cons
nil :: nil:cons
cons :: 0':s → nil:cons → nil:cons
sum :: nil:cons → 0':s
prod :: nil:cons → 0':s
hole_0':s1_0 :: 0':s
hole_nil:cons2_0 :: nil:cons
gen_0':s3_0 :: Nat → 0':s
gen_nil:cons4_0 :: Nat → nil:cons

Lemmas:
+'(gen_0':s3_0(n6_0), gen_0':s3_0(n6_0)) → gen_0':s3_0(*(2, n6_0)), rt ∈ Ω(1 + n60)

Generator Equations:
gen_0':s3_0(0) ⇔ 0'
gen_0':s3_0(+(x, 1)) ⇔ s(gen_0':s3_0(x))
gen_nil:cons4_0(0) ⇔ nil
gen_nil:cons4_0(+(x, 1)) ⇔ cons(0', gen_nil:cons4_0(x))

No more defined symbols left to analyse.

(39) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
+'(gen_0':s3_0(n6_0), gen_0':s3_0(n6_0)) → gen_0':s3_0(*(2, n6_0)), rt ∈ Ω(1 + n60)

(40) BOUNDS(n^1, INF)